package com.daxia.bumall.common;

/**
 * 
 * 公司人数
 *
 */
public enum CompanyQuantity {
	first(1, "10人以下"),
	second(2, "10~50人"),
	third(3, "50~100人"),
	fourth(4, "100~500人"),
	fifth(5, "500人以上");

	
	private int value;
	private String remark;
	
	public int getValue() {
		return this.value;
	}
	
	public String getRemark() {
		return this.remark;
	}
	
	private CompanyQuantity(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}
	
	public CompanyQuantity getByValue(int value) {
		for(CompanyQuantity cgs : CompanyQuantity.values()) {
			if(cgs.value == value) {
				return cgs;
			}
		}
		return null;
	}
}
